package ca.liu.scaffoldingmvctest.dao;

import ca.liu.scaffoldingmvctest.domain.StUser;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage StUser entities.
 * 
 */
public interface StUserDAO extends JpaDao<StUser> {

	/**
	 * JPQL Query - findStUserByUsername
	 *
	 */
	public Set<StUser> findStUserByUsername(String username) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByUsername
	 *
	 */
	public Set<StUser> findStUserByUsername(String username, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByUsernameContaining
	 *
	 */
	public Set<StUser> findStUserByUsernameContaining(String username_1) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByUsernameContaining
	 *
	 */
	public Set<StUser> findStUserByUsernameContaining(String username_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStUserById
	 *
	 */
	public StUser findStUserById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findStUserById
	 *
	 */
	public StUser findStUserById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllStUsers
	 *
	 */
	public Set<StUser> findAllStUsers() throws DataAccessException;

	/**
	 * JPQL Query - findAllStUsers
	 *
	 */
	public Set<StUser> findAllStUsers(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPrimaryKey
	 *
	 */
	public StUser findStUserByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPrimaryKey
	 *
	 */
	public StUser findStUserByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPassword
	 *
	 */
	public Set<StUser> findStUserByPassword(String password) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPassword
	 *
	 */
	public Set<StUser> findStUserByPassword(String password, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPasswordContaining
	 *
	 */
	public Set<StUser> findStUserByPasswordContaining(String password_1) throws DataAccessException;

	/**
	 * JPQL Query - findStUserByPasswordContaining
	 *
	 */
	public Set<StUser> findStUserByPasswordContaining(String password_1, int startResult, int maxRows) throws DataAccessException;

}